package cn.clq.user.mapper;

import cn.clq.user.domain.Logininfo;
import cn.clq.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chenlei
 * @since 2022-06-17
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {
    //根据用户的用户名和类型查询数据
    Logininfo loadByUsernameAndType(@Param("username") String username,@Param("type") Integer type);

    Logininfo loadByUserId(Long userId);
}
